package com.water.bs.mapper;

import com.water.bs.pojo.EmailCode;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Mapper
@Repository
public interface EmailMapper {

    int saveEmailCode(Map<String,Object> emailMap);

    EmailCode getEmailCode(String userEmail);

    int deleteEmailCode(String userEmail);

    int isEmailRepeat(String userEmail); //判断邮箱是否已经被注册

    int isEmailRepeatOrg(String orgEmail); //判断邮箱是否已经被注册 机构
}
